package me.luochenyxh.base.ext

/**
 * 作者 : yuan_xh
 * 时间 : 2022/7/19 9:52
 * 说明 : lazy 扩展
 */

fun <T> lazyPublication(initializer: () -> T): Lazy<T> =
    lazy(LazyThreadSafetyMode.PUBLICATION, initializer)

fun <T> lazyNone(initializer: () -> T): Lazy<T> =
    lazy(LazyThreadSafetyMode.NONE, initializer)